package ballParadigm;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.border.BevelBorder;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JTextField;
import javax.swing.JTextPane;
import javax.swing.JLabel;
import javax.swing.ImageIcon;

public class helpFrame extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					helpFrame frame = new helpFrame();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public helpFrame() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 400, 400);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JPanel panel = new JPanel();
		panel.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
		panel.setBounds(6, 6, 388, 331);
		contentPane.add(panel);
		panel.setLayout(null);
		
		JTextPane txtpnInThisGame = new JTextPane();
		txtpnInThisGame.setEditable(false);
		txtpnInThisGame.setText("In this game try to use the objects provided to lead the ball to the door. Try your best not to hurt teyze (Old woman with staff) and Esnaf (The cay drinking man), lest you kill them. After you have arranged all the correct platform placements press on Simulation start, lay back and enjoy the show!");
		txtpnInThisGame.setBounds(6, 6, 376, 146);
		panel.add(txtpnInThisGame);
		
		JLabel lblNewLabel = new JLabel("");
		lblNewLabel.setIcon(new ImageIcon(helpFrame.class.getResource("/ballParadigm/esnaf.gif")));
		lblNewLabel.setBounds(46, 209, 61, 87);
		panel.add(lblNewLabel);
		
		JLabel lblNewLabel_1 = new JLabel("");
		lblNewLabel_1.setIcon(new ImageIcon(helpFrame.class.getResource("/ballParadigm/teyze.gif")));
		lblNewLabel_1.setBounds(150, 190, 61, 106);
		panel.add(lblNewLabel_1);
		
		JLabel lblNewLabel_2 = new JLabel("");
		lblNewLabel_2.setIcon(new ImageIcon(helpFrame.class.getResource("/ballParadigm/cat.gif")));
		lblNewLabel_2.setBounds(268, 238, 61, 30);
		panel.add(lblNewLabel_2);
		
		JLabel lblNewLabel_3 = new JLabel("");
		lblNewLabel_3.setIcon(new ImageIcon(helpFrame.class.getResource("/ballParadigm/catbroken.gif")));
		lblNewLabel_3.setBounds(268, 295, 61, 30);
		panel.add(lblNewLabel_3);
		
		JButton btnClose = new JButton("Close");
		btnClose.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				dispose();
			}
		});
		btnClose.setBounds(140, 349, 117, 29);
		contentPane.add(btnClose);
	}
}
